﻿using Batman.Jianbei.Forum.Core.ChatRoom;
using Batman.Jianbei.Forum.Core.Enums.Chatroom;

namespace Batman.Jianbei.Forum.DTOS.Chatroom
{
    /// <summary>
    /// 创建房间消息
    /// </summary>
    public class RoomCreateMsgDTO : RoomMsgBaseDTO
    {
        /// <summary>
        /// 房间名称
        /// </summary>
        public string RoomName { get; set; }

        private RoomCreateMsgDTO(string roomId, Mask mask, string message) : base(roomId, mask, message, RoomMsgType.CreateRoom)
        {
        }

        public RoomCreateMsgDTO(string roomId, Mask mask, string message, string roomName) : this(roomId, mask, message)
        {
            RoomName = roomName;
        }

        public override string GetMethod()
        {
            return "create_room";
        }
    }
}
